package com.dome.service;

import java.util.List;

import com.dome.config.MyDateSources;
import com.dome.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dome.dao.RoleDao;



@Service
public class RoleService {
	@Autowired
	private RoleDao roleDao;
	
	@MyDateSources(data="1")
	public List<Role> getWH(long id) {
		return roleDao.selectRole(id);
	}

	@MyDateSources(data="2")
	public List<Role> getBJ(long id) {
		return roleDao.selectRole(id);
	}


	@MyDateSources(data="1")
	public void insertRoleWH(List<Role> roleBJ) {
		roleDao.insertRoleWH(roleBJ);
	}


	@MyDateSources(data="1")
	public void deleteRoleWH(long id) {
		roleDao.deleteRoleWH(id);
	}
}
